<?php 

class viper_server_DistHeap extends SplHeap {
  public function compare($ar1, $ar2) {
    if ($ar1['dist'] == $ar2['dist'])
      return 0;
    return $ar1['dist'] < $ar2['dist'] ? 1 : -1;
  }
}

?>